#include <reg52.h>
typedef unsigned int u16;
void delay_time(u16 ti)
{
	while(ti--)
	;
}
int main()
{
	u16 LED=0;
	while(LED<8)
	{
		P2=~(0x01<<LED);
		delay_time(50000);
		LED++;
	}
	return 0;
}